package com.bestcem.xm.survey.service;

import com.bestcem.xm.component.mybatis.service.IXmService;
import com.bestcem.xm.survey.entity.SurveyRespondentAttachment;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author guita
 * @description 针对表【ds_survey_respondentattachment】的数据库操作Service
 * @createDate 2023-01-09 15:15:37
 */
public interface SurveyRespondentAttachmentService extends IXmService<SurveyRespondentAttachment> {

    List<SurveyRespondentAttachment> attachment(String projectId, Integer seq, List<MultipartFile> file, Integer qid, Integer optionId, Boolean keepExt);

    /**
     * 删除答卷附件
     *
     * @param projectId 问卷id
     * @param seq       答卷seq
     * @param attId     附件id
     * @return
     */
    int deleteAttachment(String projectId, Integer seq, String attId);

    Object getAttachments(String projectId, Integer seq, Integer qid, Integer optionId);
}
